/**
 * 账号类
 */
class LoginData {
  //默认值方便登录
  //房屋ID
  HomeIdentify:String=''
  //手机号
  PhoneNumber:String=''
  //二次确认密码
  ConfirmPwd:String=''

  //set_get小屋ID
  setHomeIdentify(value: string) {
    this.HomeIdentify = value;
  }
  getHomeIdentify(): string {
    return this.HomeIdentify.toString();
  }

  //set_get手机号
  setPhoneNumber(value: string) {
    this.PhoneNumber = value;
  }
  getPhoneNumber(): string {
    return this.PhoneNumber.toString();
  }

  //set_get二次密码
  setConfirmPwd(value: string) {
    this.ConfirmPwd = value;
  }
  getConfirmPwd(): string {
    return this.ConfirmPwd.toString();
  }
}

/**
 * 接入模式类
 */
class AccessMode{
  //接入云平台模式 0云平台，1UDP,3其他状态
  Model:number=3
  //默认连接状态未连接
  is_Login:string='未连接'
  //插入数据间隔默认5秒
  InsertTime:string='5'

  //门铃状态
  DoorState:number=-1
  setDoorState(value: number) {
    this.DoorState = value;
  }
  getDoorState(): number {
    return this.DoorState;
  }
  //set-get接入模式
  setModel(value: number) {
    this.Model = value;
  }
  getModel(): number {
    return this.Model;
  }
  //set-get连接状态
  setis_Login(value: string) {
    this.is_Login = value;
  }
  getis_Login(): string {
    return this.is_Login;
  }
  //set-get数据间隔
  setInsertTime(value: string) {
    this.InsertTime = value;
  }
  getInsertTime(): string {
    return this.InsertTime;
  }
}

/**
 * 网络处理类
 */
class NetData{
  //IP地址
  IpAddress:string=''
  //set-getIP地址
  setIpAddress(value:string) {
    this.IpAddress = value;
  }
  getIpAddress(): string {
    return this.IpAddress;
  }
}


const LoginDataInstance = new LoginData();
const AccessModeInstance = new AccessMode();
const NetDataInstance = new NetData();
// 导出包含三个实例的对象
export default {
  LoginDataClass: LoginDataInstance,
  AccessModeClass: AccessModeInstance,
  NetDataClass:NetDataInstance
};
